﻿<controls:UserControlBase x:Class="SBPweb.Communication.Client.Controls.Xmpp.Connections.ConnectionsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:SBPweb.Communication.Client.Controls.Xmpp"
    xmlns:utils="clr-namespace:SBPweb.Forge.Controls.Silverlight.Utilities;assembly=SBPweb.Forge.Controls.Silverlight"
	VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
    <controls:UserControlBase.Resources>
        <utils:ImageSourceConverter x:Name="imageSourceConverter" />
    </controls:UserControlBase.Resources>
    <Grid>
        <!--Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions-->
        <ComboBox Name="cbPresence" SelectionChanged="cbPresence_SelectionChanged">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Image Grid.Column="0" Source="{Binding Converter={StaticResource imageSourceConverter}}" />
                        <TextBlock Grid.Column="1" VerticalAlignment="Center" Text="{Binding Availability}" />
                    </Grid>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
    </Grid>
</controls:UserControlBase>